home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13971 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  40 lines

  1. Newsgroups: comp.lang.c++
  2. Path: artemis.sto.fdata.se!news
  3. From: Mikael Andersson <mikael.andersson@stog.wmdata.se>
  4. Subject: Re: File I/O problems in DLL
  5. Sender: news@artemis.sto.fdata.se (UseNet NetNews)
  6. Message-ID: <3158FB2D.53A4@stog.wmdata.se>
  7. Date: Wed, 27 Mar 1996 08:24:13 GMT
  8. Content-Transfer-Encoding: 7bit
  9. Content-Type: text/plain; charset=us-ascii
  10. References: <3150365E.2310@ludd.luth.se>
  11. Mime-Version: 1.0
  12. X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
  13. Organization: WM Data Infrateknik
  14.  
  15. Mikael Andersson wrote:
  16. > I'm having trouble with file I/O in a DLL I've made with Borland C++
  17. > 4.0x which a FoxPro program is using.
  18. > First I made a testprogram in C++ and everything went ok, but the DLL
  19. > just stopped working when called by the FoxPro program. After much
  20. > trouble I heard that you must use SDK file I/O in the DLL, I used
  21. > ifstream and TFile, so I tested with OpenFile and _lread and so on and
  22. > it worked again. So what's this all about? Can't you use TFile and
  23. > ifstream, and if so why?
  24. > The problems I had when using ifstream and TFile was that a file FoxPro
  25. > created when opened in the DLL was empty (or the ifstream just couldn't
  26. > get any thing from it). Is it some kind of buffering problem, or
  27. > what? Both TFile and ifstream had problems with closing the files it
  28. > opened/created.
  29.  
  30. Hello, out there!
  31.  
  32. Is there not anybody out there that has some sort of an idea of what the reason 
  33. is to my little problem?
  34.  
  35. Grateful for all suggestions, ideas, comments, anything, Micke.
  36.